package org.geek4j.business.repository.mybatis.domain;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotNull;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Geek4J
 * @since 2016年3月20日下午6:09:55
 * @description User domain
 */
@Setter
@Getter
public class User implements Serializable {

	private static final long serialVersionUID = 1587748276077614832L;

	private Long id;

	@NotNull(message = "用户名不能为空")
	private String name;

	private List<Role> roles;
}